Skip to content

util.countnans: Don't treat single-row sparse matrices as 1-d#7219

Merged
VesnaT merged 1 commit intobiolab:masterfrom
janezd:countnans-sparse
Jan 9, 2026
Merged

util.countnans: Don't treat single-row sparse matrices as 1-d#7219
VesnaT merged 1 commit intobiolab:masterfrom
janezd:countnans-sparse

Conversation

@janezd
Copy link
Contributor

@janezd janezd commented Dec 20, 2025

Issue

Fixes #7164.

Description of changes

countnans treats a sparse matrix of shape (1, n) as a vector. Using @pavlin-policar 's trick, we transpose it. (Besides being the inventor of the trick, he also caused this trick to be needed.)

Includes
  • Code changes
  • Tests
  • Documentation

@janezd janezd marked this pull request as ready for review December 20, 2025 11:57
@codecov
Copy link

codecov bot commented Dec 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.03%. Comparing base (9e35194) to head (8662f0f).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7219   +/-   ##
=======================================
  Coverage   89.03%   89.03%           
=======================================
  Files         335      335           
  Lines       74243    74245    +2     
=======================================
+ Hits        66100    66103    +3     
+ Misses       8143     8142    -1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@VesnaT VesnaT merged commit f6536a1 into biolab:master Jan 9, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data Table crashes on single sparse instance

2 participants